package secondStage.part3.泛型.泛型方法;

/**
 * @ClassName: [Generic]
 * @Description: Generic泛型方法
 * @Author: [黄劲松]
 * @CreateDate: [2021-04-03]
 * @Version: [v1.0]
 */
/*public class Generic {
    public void show(String s){
        System.out.println(s);
    }
    public void show(Integer i){
        System.out.println(i);
    }
    public void show(Boolean b){
        System.out.println(b);
    }
}*/
//泛型类
/*public class Generic<T> {
    public void show(T t){
        System.out.println(t);
    }
}*/
//泛型方法
public class Generic {
    public <T> void show(T t) {
        System.out.println(t);
    }
}
